<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎</title>
    <style>
        body {
            font-family: "Microsoft YaHei", sans-serif;
            padding: 40px;
            color: #333;
            background: #f8f9fa;
        }
        .welcome-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #3498db;
            margin-bottom: 30px;
            font-size: 32px;
        }
        .feature-list {
            text-align: left;
            margin-top: 30px;
            padding: 20px;
        }
        .feature-list h2 {
            color: #2c3e50;
            margin-bottom: 20px;
        }
        .feature-list ul {
            list-style: none;
            padding: 0;
        }
        .feature-list li {
            margin: 15px 0;
            padding-left: 25px;
            position: relative;
        }
        .feature-list li:before {
            content: "•";
            color: #3498db;
            font-size: 20px;
            position: absolute;
            left: 0;
        }
        .stats-container {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        .stat-item {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .stat-item h3 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        .stat-item ul {
            list-style: none;
            padding: 0;
        }
        .stat-item li {
            margin: 5px 0;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="welcome-container">
        <h1>欢迎使用人工智能视觉算法模块</h1>
        <p>本系统提供多种计算机视觉算法服务，请从左侧菜单选择要使用的功能</p>
        
        <div class="feature-list">
            <h2>主要功能：</h2>
            <ul>
                <li>通用物体和场景识别 - 识别图像中的物体和场景类别</li>
                <li>图像单主体检测 - 定位图像中的主体区域</li>
                <li>动物识别 - 识别图片中的动物种类</li>
                <li>目标跟踪 - 在视频序列中跟踪目标对象</li>
            </ul>
        </div>

        <div class="feature-list">
            <h2>系统统计</h2>
            <div class="stats-container">
                <div class="stat-item">
                    <h3>总访问量</h3>
                    <p>{{ stats.total_visits }}</p>
                </div>
                <div class="stat-item">
                    <h3>API调用统计</h3>
                    <ul>
                        <li>通用物体和场景识别：{{ stats.api_calls.get('classification', 0) }}次</li>
                        <li>图像单主体检测：{{ stats.api_calls.get('detection', 0) }}次</li>
                        <li>动物识别：{{ stats.api_calls.get('animal', 0) }}次</li>
                        <li>目标跟踪：{{ stats.api_calls.get('tracking', 0) }}次</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 